package com.aier.admin_new.entity;


import javax.persistence.Entity;
import javax.persistence.Table;



/**
 * School entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "school", catalog = "abc")
public class School implements java.io.Serializable {

    // Fields 学校表                                                                               app
    private Integer sid;    //学校id          id
    private String name;    //学校名称                             name
    private Integer pid;    //所属代理商的id     pid
    private Integer cid;        //所在城市id    
    private Integer mesCount;//剩余可用短信条数
    private String desinfo;    //学校简介                     info
    private String img;        //学校主图                     bgIma
    private String slogo;    //学校logo
    private Integer method;  // 学校付费方式
    private String methodStr; //
    private String mesSuffix; // 学校短信后缀
    
    // 扩展
    private Integer classCount;   // 班级数
    private String managers;      //学校管理员名字与账号;
    private int num_teacher;      //班级教师人数
    private int num_student;       //班级学生人数
    private int num_parent;        //班级家长人数         
    private int memberNum;        // memberNum =班级教师人数 + 班级学生人数+班级家长人数   
	private String address;       //           address
    private Integer count;        // 已发送短信条数   
    private String phone;         //联系电话                  phone
    private String postcode;      //邮编                          postcode
    private String url;           //具体网址                  url
    
    // Constructors
    /** default constructor */
    public School() {
    }

    
    
    public String getPhone() {
		return phone;
	}



	public void setPhone(String phone) {
		this.phone = phone;
	}



	public String getPostcode() {
		return postcode;
	}



	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}



	public String getUrl() {
		return url;
	}



	public void setUrl(String url) {
		this.url = url;
	}



	public School(String name, Integer pid, Integer cid, String desinfo) {
        super();
        this.name = name;
        this.pid = pid;
        this.cid = cid;
        this.desinfo = desinfo;
    }



    public School(Integer sid, String name, Integer pid, Integer cid,
            String desinfo, String img, String slogo, Integer mesCount,Integer method) {
        super();
        this.sid = sid;
        this.name = name;
        this.pid = pid;
        this.cid = cid;
        this.desinfo = desinfo;
        this.img = img;
        this.slogo = slogo;
        this.mesCount = mesCount;
        this.method = method;
    }



    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getSlogo() {
        return slogo;
    }

    public void setSlogo(String slogo) {
        this.slogo = slogo;
    }

    public Integer getMesCount() {
        return mesCount;
    }

    public void setMesCount(Integer mesCount) {
        this.mesCount = mesCount;
    }



    public Integer getClassCount() {
        return classCount;
    }



    public void setClassCount(Integer classCount) {
        this.classCount = classCount;
    }



    public String getManagers() {
        return managers;
    }



    public void setManagers(String managers) {
        this.managers = managers;
    }



    public int getNum_teacher() {
        return num_teacher;
    }



    public void setNum_teacher(int num_teacher) {
        this.num_teacher = num_teacher;
    }



    public int getNum_student() {
        return num_student;
    }



    public void setNum_student(int num_student) {
        this.num_student = num_student;
    }



    public int getNum_parent() {
        return num_parent;
    }



    public void setNum_parent(int num_parent) {
        this.num_parent = num_parent;
    }



    public String getAddress() {
        return address;
    }



    public void setAddress(String address) {
        this.address = address;
    }



    public Integer getCount() {
        return count;
    }



    public void setCount(Integer count) {
        this.count = count;
    }



    public Integer getMethod() {
        return method;
    }



    public void setMethod(Integer method) {
        this.method = method;
    }



    public String getMethodStr() {
        return methodStr;
    }



    public void setMethodStr(String methodStr) {
        this.methodStr = methodStr;
    }



    public String getMesSuffix() {
        return mesSuffix;
    }



    public void setMesSuffix(String mesSuffix) {
        this.mesSuffix = mesSuffix;
    }
    public int getMemberNum() {
		return memberNum;
	}



	public void setMemberNum(int memberNum) {
		this.memberNum = memberNum;
	}
}